<?php
header('Content-Type: text/html; charset=utf8');
    include_once '../../../../controlador/php/conexion/Conexion.php';
    $con = new Conexion();
    
    $doc = $_REQUEST['docume'];

    $listado = "select rem_fHora,rem_docPac,rem_nomPac,rem_oid
                from remisionNO
                where rem_docPac like '%".$doc."%'
                order by rem_fHora desc";
    $res = $con->query($listado);
    while
        ($re = mssql_fetch_array($res)){
        $lista[] =$re;
       
    }
    $con->cerrarConexion();  
    print_r(json_encode($lista))
    
?>
